package config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import people.Leg;
import people.LegRunImpl;

/**
 *
 * config
 *
 * 2018/6/10-21:20
 * 2018
 * Created by wuqiang on 2018/6/10.
 */
@Configuration
public class LegConfig { //假设两个类，需要配置在两个JavaConfig中，该如何配置？

    @Bean
    public Leg setLeg(){
        return new LegRunImpl();
    }

}
